Repository navigation
Visible input errors, touch-sized controls, quieter LeetCode links, heading order - #5
Merged
Merged
Conversation
- Space on a focused button, link or disclosure presses it instead of toggling playback; Alt/Ctrl/Cmd combos go to the browser (Alt+← is Back). - Approach and language tabs take ←/→/Home/End and use a roving tabindex, so only the selected tab is a Tab stop. - The narration is a polite live region, muted while autoplay runs; the scrubber announces "Step 2 of 12: tally" via aria-valuetext. - tokens.css sets color-scheme per theme, so scrollbars, range tracks and spinners are drawn dark on the dark theme.
- The transport and narration stick under the masthead while the reader scrolls the stage and code, and let go at the end of the player; not on windows shorter than 600px. - On phones only the buttons stick, as one 40px-tall row; the narration stays in the flow above the stage. - Focusable elements in the stage scroll clear of the sticky bar. - The array strip wraps onto more rows instead of scrolling sideways, with room under each row for pointer labels; cells shrink a little on phones.
…eading order - A field that does not parse gets a red border, aria-invalid and aria-describedby to a live warning; the stage, strip and narration dim while any field is bad, and the warning says the walkthrough still shows the last input that worked. A valid edit elsewhere no longer clears it. - On touch screens and at <=560px, chips, language tabs, the page-language switch, Copy, example buttons, jump chips, masthead links and the theme button are 40px tall. - The jump nav's "View on LeetCode" links are plain links past a divider, not pills like the in-page part chips; the nav is labelled. - Headings nest without skipping a level (2·2's panels are h4, part 3's solutions h3, x-sum's steps h5); .as-h2/.as-h3 keep their old look.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Items 6, 7, 10 and 11 from the x-sum UI/UX review. The changes are in the shared stepper, layout and styles, so all 46 lessons get them. Only x-sum's own brute-force step headings needed a lesson edit.
6 · Bad input is visible (
stepper.js,lesson.css)badclass to a rejected field, but no CSS rule used it, so the field looked unchanged. Now a field that doesn't parse gets a red border,aria-invalid="true", andaria-describedbypointing at the warning.7 · Touch-sized controls (
lesson.css,site.css)(pointer: coarse), (max-width: 560px), these grow to 40px tall: preset chips, language tabs, the English/မြန်မာ switch, Copy, "Load into the stepper", the jump chips, the masthead links and the theme button.10 · LeetCode links look different from section links (
Walkthrough.astro,lesson.css)aria-label="On this page".11 · Headings nest in order (
stepper.js,stage.js,Walkthrough.astro,base.css, x-sum).as-h2and.as-h3classes keep each re-levelled heading looking exactly as before, and the tag-based selectors (.src-head, x-sum's.bf-step, the Burmese font rule) now match the new tags.Checked
npm run check,npm run build, thennpm run audit(axe in both themes): passed, 46 pages.